package com.huluobo.a2203kotlinjetpackdemo.hilt

import dagger.Component
import dagger.Module
import dagger.Provides
import dagger.hilt.DefineComponent
import dagger.hilt.InstallIn
import dagger.hilt.android.internal.managers.ApplicationComponentManager
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

/**
 *  Created by LC on 2024/7/18.
 */

@Module
@InstallIn(SingletonComponent::class)
object LoginModel {
    @Provides
    @Singleton //指定是一个单例的依赖
    fun getApiService(): RetrofitManager {
        return GetRetrofit()
    }
}